package com.future.wxapp.pedometer.data;

import lombok.Data;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Repository;

import java.util.ArrayList;
import java.util.List;
import java.util.Random;

@Data
@Repository
@Slf4j
public class Address {
    List<String> address;

    public Address() {
        this.address = new ArrayList<>();
        address.add("九龙坡区国家青林村(分水镇黄泥乡)");
        address.add("下河街与德感正街交叉口北150米");
        address.add("重庆市綦江区中华村塘湾社");
        address.add("重庆市石柱土家族自治县城北路东50米");
        address.add("重庆市云阳县故陵万县公路南50米");
    }

    public String getRandomAddress() {
        return address.get(new Random().nextInt(address.size()));
    }

}
